global !p
from os import environ
endglobal

snippet #coding "-*- coding: utf-8 -*-"
#-*- coding: utf-8 -*-
# Author: `!p
if 'AUTHOR' in environ:
	snip.rv = environ['AUTHOR']
else:
	snip.rv = '陈新亮<chenxinliang@bit.edu.cn>'
`
endsnippet

snippet ifmain  "ifmain"
if __name__ == '__main__':
	main()
endsnippet


snippet def  "function"
def ${1}(${2:*args, **kwargs}):
	""" documentation for function $1 """
	${3:pass}

$0
endsnippet

snippet class "class"
class ${1:ClassName}(${2:object}):
	""" description of class $1 """

	def __init__(self, ${3:*args, **kwargs}):
	""" construtor for class $1 """
		super().__init__($3)
	
$0
endsnippet

snippet property "property"
@property
def ${1:name}(self):
	""" ${2:documentation for property $1.} """
	return $3

$0
endsnippet


